package com.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pojo.Xiaofei;
import com.vo.XiaofeiVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface XiaofeiDAO extends BaseMapper<Xiaofei> {

    IPage<XiaofeiVo> getXfRecordByUser(Page page, @Param("staffId") String staffId, @Param("time1") String time1, @Param("time2") String time2);

    IPage<XiaofeiVo> getXfRecord(Page page, String staffName, String time1, String time2, @Param("queryStr") String queryStr, @Param("zyNameList") List<String> zyNameList);

    List<XiaofeiVo> exportByExecl(String staffName, String time1, String time2, @Param("queryStr") String queryStr, @Param("zyNameList") List<String> zyNameList);

    BigDecimal getTotalAmount();

    List<Map<String,Object>> getDayAmountByMonth();
}
